package router

import (
	"jgt-wallet/src/context"
	"jgt-wallet/src/controller/dev"

	"github.com/facebookgo/inject"
	"github.com/teambition/gear"
)

// DevUnionpayB2bMap 微信APP路由映射
func DevUnionpayB2bMap(g *inject.Graph, router *gear.Router) {
	a := new(dev.UnionpayB2b)
	err := g.Provide(&inject.Object{Value: a})
	if err != nil {
		panic(err)
	}

	router.Get("/unionpay/b2b/pay/:price", context.WrapContext(a.Pay))

}
